package com.scott.demo.controller;

import com.scott.demo.service.MyNamedServcie;
import com.scott.demo.service.MyService;
import com.scott.framework.annotation.Autowired;
import com.scott.framework.annotation.Controller;
import com.scott.framework.annotation.RequestMapping;
import com.scott.framework.annotation.RequestParam;

@Controller
@RequestMapping(value = "/my")
public class MyController {

    @Autowired
    MyService myService;

    @Autowired("myService")
    MyNamedServcie myNamedServcie;

    @RequestMapping(value = "/test")
    public void test(@RequestParam(value = "name") String name) {
        System.out.println(">>>>>>>>>   收到请求：" + name + "   <<<<<<<<<<");
    }
}
